package ph.loong.deliveryman.fragment.account

import com.administrator.kotlindemo1.utils.showToast
import deliveryman.loong.ph.deliveryman.R
import kotlinx.android.synthetic.main.fragment_code_login.*
import ph.loong.deliveryman.base.BaseFragment
import ph.loong.deliveryman.view.dialog.VerifyCodeDialog

/**
 * Author jc.lu.
 * Dates 2018/2/8.
 * Email Tbsupland@163.com.
 * desc
 */
class CodeLoginFragment : BaseFragment() {
    override fun getLayoutId(): Int = R.layout.fragment_code_login

    override fun initView() {
        btn_get_verify_code.setOnClickListener({ getVerifyCode() })
    }

    override fun lazyLoad() {

    }

    fun getVerifyCode() {
        //需要使用单例
        val getCodeDilaog = VerifyCodeDialog(context!!)
        getCodeDilaog.show()
        getCodeDilaog.setVerifyCodeClickItem { str -> showToast(str) }
    }
}